#ifndef LOGFILE_H
#define LOGFILE_H

#include "LogTagIO14.h"

class LogFile
{
private:
	char *fileName;

protected:
	LOGTAG_HANDLE		handle;
	LOGTAG_INTERFACE 	tagInterface;
	LOGTAG_INFO	     	tagInfo;
	LPLOGTAG_SENSOR  	tagSensor;
	LPLOGTAG_READING 	tagReadings;

public:

	LogFile();
	~LogFile();
	
	void SetFileName(const char *fileName);
	char const *GetFileName();

	bool OpenFile();
	bool LoadData();
	long GetReadingCount();
	LOGTAG_READING GetReadingByIndex(long index);
};

#endif